<div align="center">
    
    <form>

    </form>
</div>
<?php
echo greengar_opinions_count_interestRatingComment(NULL, NULL);
echo "<br>";
$commentEntities = greengar_opinions_get_interestRatingComment(NULL, NULL);
foreach ($commentEntities as $commentEntity) {
    echo elgg_view_entity($commentEntity);
    $form_body = '';
    $form_body .= elgg_view('input/hidden', array('internalname' => 'object_guid', 'value' => $commentEntity->getGUID()));
    $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => 'Mark as abused'));
    
    echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$CONFIG->url}actions/greengar/opinions/report"));
}
?>
